package day1026.Qiche;

public class Car {
    private String colour;//颜色
    private String brand;//品牌
    private String chepai;//车牌

    public Car(String colour, String brand, String chepai) {
        this.colour = colour;
        this.brand = brand;
        this.chepai = chepai;
    }

    //启动
    public void start(){
        System.out.println(this.brand+"车子启动");
    }

    //刹车
    public void brake(){
        System.out.println(this.brand+"车子刹车");
    }

    //加速
    public void accelerate(){
        System.out.println(this.brand+"车子加速");
    }

    public void show(){
        System.out.println("车子颜色是:"+this.colour+",品牌是:"+this.brand+",车牌是:"+this.chepai);
    }
}
